<?php

namespace app\manual\controller;

use think\Config;
use think\Controller;
use think\Db;

class Conf extends Base
{

    public function index($type = 3)
    {
	    $config = [];
	    $arr = [
    		'base' => '基本配置',
    		'adminapi' => '后台API',
    		'api' => '通用API',
	    ];
	
	    foreach ($arr as  $key => $a) {
		    $config[$key] = [
		    	'name' => $a,
			    'list' => config($key)
		    ];
    	}
    	
    	$this->assign('config',$config);
	    
	    return $this->fetch();
    	halt( $config );
    }

    
}
